
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/jquery-ui.css">
<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/admin.css">
<script type="text/javascript" src="__HOME_JS__/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/dialog.js"></script>
<script type="text/javascript">
  $(function() {
    $(".tabnavi2").click(function() {
      $(".tabnavi2").removeClass("tabnaviactive2");
      $(this).addClass("tabnaviactive2");
      var indexnum = $(this).index();
      $(".tabbox2").css("display", "none");
      $(".tabbox2:eq(" + indexnum + ")").css("display", "block");
    });

  });

  function sendFeedBack() {
    var content = $('#content').val();
    var title = $('#title option:selected').val();
    if (title == '' || title == '请选择') {
      dialog.error('消息', '您的问题不能为空！');
      $('#content').focus();
      return;
    }
    if (content == '') {
      dialog.error('消息', '问题具体描述不能为空！');
      $('#content').focus();
      return;
    }
    if (content.length > 200) {
      dialog.error('消息', '问题具体描述不能超过200个字符！');
      $('#content').focus();
      return;
    }
    if (!confirm("是否确定进行该操作？")) {
      return;
    }
    $.ajax({
      url : '/index.php/UserCenter/sendFeedBack',
      type : 'POST',
      loading : true,
      dataType: "json",
      data : {
        content : content,
        title : title
      },
      success : function(res) {
        if (res.success) {
          dialog.alert('消息',res.message,null,'/index.php/UserCenter/index');

        } else {
          dialog.error('消息',res.message);
        }
      }
    });
  }
</script>
</head>
<body id="bodyid" class="skin_blue">
<include file="Public/user_nav" />

      <script language="javaScript">
            function details(){
    	  
  		$("#detail").dialog({
			title: "详细信息",
			width: 620
		});
  	    $.ajax({
  	      url : 'change_read',
  	      type : 'POST',
  	      loading : true,
  	      dataType: "json",
  	      data : {
  	    	  read:1,
  	    	  
  	      },
  	      success : function(res) {
  	      }
  	    });
  
      }
      </script>

 <div class="rightpanel rw">
    <div class="contentcontainer">
      <div class="clearfix">
        <div class="tabnavi2 tabnaviactive2 clearfix">历史记录</div>
        <div class="tabnavi2 clearfix">创建反馈</div>
      </div>
      <div class="tabbox2" style="display: block">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bordergrey">

          <tbody>
              <volist name="suggestions" id="vo">	
            <tr class="borderbtmgrey readmail">
           
            	<volist name="type" id="v">
   					<switch name="vo.title">
		       			<case value="$v.id">
		              		<td width="71%" class="algleft">
		              		{$v.name}（ <if condition="$vo.status eq 0"><span class="red">等待回复</span><else/><span class=green style="color:green;">已回复</span></if> ）</td>
		              	</case> 
	              	</switch>
                </volist>
              <td width="29%">{$vo.createtime|date="Y-m-d H:i:s",###}<span class="blue">(<a  onclick="dialog.url('详细信息',620,400,'/index.php/UserCenter/showsuggestions?id={$vo.id}')"  href="javascript:;">详情</a>)
              </span>
              	<div id="detail" style="display: none">
				    <div class="popupinternal">
				      <div class="steps">
				        <div class="row clearfix mt30 ml33">
							{$vo.content}
				        </div>
				      </div>
				    </div>
		  		 </div>
              </td>
              
            
            </tr>
  </volist>

          </tbody>
        </table>
			<div class="page_info">
				{$page}
			</div>
      </div>


      <div class="tabbox2">
        <table width="90%" border="0" cellspacing="0" cellpadding="0">

          <tbody>
            <tr>
              <td width="15%" valign="top" class="algleft">您的问题</td>
              <td width="85%" class="algleft">
	              <select id="title" class="textbox2">
	                  <option value="请选择">请选择</option>
	                  <volist name="type" id="vo">
	                  	<if condition="$vo.parent_id neq 0">
		                  <option value="{$vo.id}">&nbsp;&nbsp;&nbsp;--{$vo.name}</option>
		                <else/>
		                  <option value="{$vo.id}">{$vo.name}</option>
		                </if>  
	                  </volist>
	              </select>
              </td>
            </tr>
            <tr>
              <td valign="top" class="algleft">问题具体描述</td>
              <td class="algleft"><textarea name="textarea" id="content" class="textbox4"></textarea></td>
            </tr>
            <tr>
              <td valign="top" class="algleft">&nbsp;</td>
              <td class="algright"><button class="btnsubmit" type="submit" onclick="sendFeedBack()">创建</button></td>
            </tr>
          </tbody>
        </table>

      </div>

    </div>
  </div>
</body>
</html>